import React, { Component } from 'react';
import { withRouter,NavLink,Link} from 'react-router-dom';
// withRouter
class View extends Component{
    render(){
        console.log(this.props);
        // setTimeout(()=>{
        //     this.props.history.push('/info');
        // },3000)
        return(
            <div><div className="header"></div>这是详情页面{this.props.id}
            <br/><NavLink to="/info">回到列表页面</NavLink>
            <NavLink to="/info">回到列表页面</NavLink>

            </div>
        )
    }
}
export default withRouter(View);
